const log4js = require('log4js');

log4js.configure({
  appenders: { lagou: { type: 'file', filename: './log/lagou.log' } },
  categories: { default: { appenders: ['lagou'], level: 'error' } }
});

const logger = log4js.getLogger('lagou');

// logger.trace('Entering cheese testing');
// logger.debug('gp18');
// logger.info('Cheese is Comté.');
// logger.warn('Cheese is quite smelly.');
// logger.error('Cheese is too ripe!');
// logger.fatal('Cheese was breeding ground for listeria.');

module.exports = logger;